package xcu.lxj.nettychat.common.utils;

/**
 * @Author XinJian Lei
 * @Date 2024/9/28 10:35
 * @Version 1.0
 */
public class RedisKey {


    private static final String BASE_KEY = "nettychat:";


    /**
     * 用户token存放
     */
    public static final String USER_TOKEN_STRING = "userToken:uid_%d";


    public static String getKey(String key, Object... objects) {
        return BASE_KEY + String.format(key, objects);
    }

}
